<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org"
	xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<link th:href="@{/ajax/libs/jquery-layout/jquery.layout-latest.css}" rel="stylesheet"/>
<link th:href="@{/ajax/libs/jquery-ztree/3.5/css/metro/zTreeStyle.css}" rel="stylesheet"/>

<body class="gray-bg">

	<div class="container-div ui-layout-center">
		<div class="row">
			<div class="col-sm-12 search-collapse">
				<form id="pool-form">
					<div class="select-list">
						<ul>
							<li>
								工号：<input type="text" name="userId"/>
							</li>
							<li>
								计划名：<input type="text" name="planName"/>
							</li>
							<li>
								<a class="btn btn-success btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
								<a class="btn btn-success btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
							</li>
						</ul>
					</div>
				</form>
			</div>


			<div class="btn-group-sm hidden-xs" id="toolbar" role="group">
				<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="pool:figure:export">
				<i class="fa fa-download"></i> 导出
				</a>
	        </div>
	        
	        <div class="col-sm-12 select-table table-striped">
			    <table id="bootstrap-table" data-mobile-responsive="true"></table>
			</div>
		</div>
	</div>
	<div th:include="include :: footer"></div>
	<script th:src="@{/ajax/libs/jquery-layout/jquery.layout-latest.js}"></script>
	<script th:src="@{/ajax/libs/jquery-ztree/3.5/js/jquery.ztree.all-3.5.js}"></script>
	<script th:inline="javascript">
		var exportFlag = [[${@permission.hasPermi('pool:figure:export')}]];
		var prefix = ctx + "pool/figure";

		$(function() {
			$('body').layout({ west__size: 185 });
			queryFigureList();
		});


		function queryFigureList() {
		    var options = {
		        url: prefix + "/list",
		        exportUrl: prefix+ "/export",
		        sortName: "userId",
		        sortOrder: "desc",
		        modalName: "骨干画像",
		        search: false,
		        showExport: false,
		        columns: [{
		            checkbox: true
		        },
		        {
		            field: 'userId',
		            title: '工号'
		        },
		        {
		            field: 'userName',
		            title: '姓名'
		        },
				{
					field: 'deptId',
					title: '部门ID',
					visible:false
				},
				{
					field: 'deptName',
					title: '部门名称'
				},
		        {
		            field: 'planName',
		            title: '考核计划'
		        },
				{
					field: 'planId',
					title: '计划ID',
					visible:false
				},
		        {
		            field: 'joinDesc',
		            title: '进入骨干池原因'
		        },
		        {
		            field: 'totalScore',
		            title: '总分数'
		        },
		        {
		            field: 'joinTypeStr',
		            title: '成为骨干的方式'
		        },
		        {
		            field: 'joinTimeStr',
		            title: '成为骨干时间'
		        },
		        {
		            field: 'planRank',
		            title: '计划排名'
		        },
		        {
		            field: 'planType',
		            title: '考核类型'
		        },
		        {
		            field: 'planLastn',
		            title: '倒数排名'
		        },
		         {
		            field: 'itemName',
		            title: '考核项目'
		        },
		         {
		            field: 'itemWeight',
		            title: '考核权重'
		        },
		         {
		            field: 'itemScore',
		            title: '项目得分'
		        },
		        {
		            field: 'itemScoreDesc',
		            title: '得分原因'
		        },
				{
					field: 'email',
					title: '用户邮箱'
				},
				{
					field: 'phonenumber',
					title: '手机号码'
				},
				{
					field: 'sex',
					title: '用户性别'
				},
				{
					field: 'hwLevel',
					title: '华为职级'
				},
				{
					field: 'coopModel',
					title: '合作模式'
				},
				{
					field: 'joinCpyTimeStr',
					title: '入职日期'
				},
				{
					field: 'workTimeStr',
					title: '工作时间'
				},
				{
					field: 'workAge',
					title: '工龄(年)'
				},
				{
					field: 'joinAge',
					title: '司龄(月)'
				},
				{
					field: 'school',
					title: '学校'
				},
				{
					field: 'education',
					title: '学历'
				},
				{
					field: 'is211',
					title: '是否211'
				},
				{
					field: 'region',
					title: '地域'
				},
				{
					field: 'projectRole',
					title: '项目组角色'
				},
				{
					field: 'directSuperiorUserId',
					title: '直接上级工号'
				},
				{
					field: 'directSuperiorUserName',
					title: '直接上级姓名'
				},
				{
					field: 'rsv1',
					title: '预留字段1'
				},
				{
					field: 'rsv2',
					title: '预留字段2'
				},{
					field: 'rsv3',
					title: '预留字段3'
				},
				{
					field: 'rsv4',
					title: '预留字段4'
				},{
					field: 'rsv5',
					title: '预留字段5'
				}
				]
		    };
		    $.table.init(options);
		}

	</script>
</body>
</html>